# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=graudit
pkgver=678.a0ec268
pkgrel=1
pkgdesc='Grep rough source code auditing tool.'
arch=('any')
groups=('blackarch' 'blackarch-code-audit')
makedepends=('git')
url='https://github.com/wireghoul/graudit'
license=('GPL')
source=("git+https://github.com/wireghoul/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  #./configure --prefix "$pkgdir/usr/bin" --dbdir "$pkgdir/usr/share/graudit"
  #make
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/share/$pkgname"

  make prefix="$pkgdir/usr" dataroot="$pkgdir/usr/share/" install
}

